package cn.leftsite.java11;

import java.util.function.Consumer;

public class VarDemo {
    public static void main(String[] args) {
        var a = "hello";
        System.out.println(a);

        new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
        }).start();


        Consumer<String> consumer = (var t) -> {
            System.out.println(t.toUpperCase());
        };
        consumer.accept("zuoban");
    }
}
